import re

print re.split(r'\s*\W+\s*', 'there?     are     apples     oranges   and     peaches    on     the    table.')